#include "higv_cextfile.h"
#include "sample_utils.h"

#ifdef __cplusplus
#if __cplusplus
extern "C"{
#endif
#endif /*  __cplusplus  */

extern HI_HANDLE g_imeWinHandle;

HI_S32 edit_keydown(HI_HANDLE hWidget,HI_U32 wParam, HI_U32 lParam)
{
    return HIGV_PROC_GOON;
}

HI_S32 softkey_sy12_ongesturetap(HI_HANDLE hWidget,HI_U32 wParam, HI_U32 lParam)
{
    HI_GV_IMEWINDOW_Change(g_imeWinHandle, HI_GV_IMEWindow_ENGLISH);
    return HIGV_PROC_GOON;
}

HI_S32 en_softkey_right_ongesturetap(HI_HANDLE hWidget,HI_U32 wParam, HI_U32 lParam)
{
    HI_GV_IMEWINDOW_Change(g_imeWinHandle, HI_GV_IMEWindow_PINYIN);
    return HIGV_PROC_GOON;
}

HI_S32 VIRTUALKB_WIN_onshow(HI_HANDLE hWidget,HI_U32 wParam, HI_U32 lParam)
{
    HI_GV_Widget_Active(VIRTUALKB_WIN_EDIT);
    HI_GV_IMEWINDOW_Change(g_imeWinHandle, HI_GV_IMEWindow_PINYIN);
    HI_GV_Widget_Show(g_imeWinHandle);
    return HIGV_PROC_GOON;
}

HI_S32 VIRTUALKB_WIN_onhide(HI_HANDLE hWidget,HI_U32 wParam, HI_U32 lParam)
{
    return HIGV_PROC_GOON;
}

HI_S32 VIRTUALKB_WIN_ontimer(HI_HANDLE hWidget,HI_U32 wParam, HI_U32 lParam)
{
    return HIGV_PROC_GOON;
}

#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif /*  __cplusplus  */
